/*
 * Copyright (C) 2012 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.afei.download;

import com.google.android.vending.expansion.downloader.impl.DownloaderService;

/**
 * This class demonstrates the minimal client implementation of the
 * DownloaderService from the Downloader library.
 */
public class SampleDownloaderService extends DownloaderService {
    // stuff for LVL -- MODIFY FOR YOUR APPLICATION!
  //  private static final String BASE64_PUBLIC_KEY = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAoSSCGRoBFyvUfRwTyKk1hm65PHh/aeLcsbce4RjgEW19TOcR+IZiBO7EHUiOab/2r4oJmAziwjRSiBy+Pww3lcOXodJUAerJhKvkTu7zaTqKU/PPV/QtIJPm4RMmd9omC0BxWiWaRZbTB0Vzbw1XiuuTZt2nJB/J6OKVJ9nLoqyfoc9UkhEmA+PHOxCx2OMsWeZ36oD2jZGN5eX6TzyHiTssggrLsomqXs3RKIKLDdf6OfvkQJNVDtlTBsLAdNLj5UY64LiGZR3FbVoV7SL445EW2e4zECmN/ocU8KTRxHGHpesgwfBsQsiIVsaLUE30kBkgwWZXluOTQnoperkpJQIDAQAB";
    private static final String BASE64_PUBLIC_KEY = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAoIESZBNXvyzhN0lNKNqHNTjEk82jvIoIRJfGiEVNxgHcyF9DaPqsaF/t53Lmcq9AFMBiJjs2EDHbMj2z/9e3kMBFX10DcJzfwyv1hgr0idB/8nT5hDyglT6R3XmEeuL7vQtTBAKVhFXby+UKos2U7OYSjzCQPKo5Ovh/6WOmJw6gXkFVsUtmtLc7olrnjNFBYL22tNt/S90mLul3JCJfR6g/yZ2KUolABPSrv29rUXilAgOlnU9nTHjgvct68QBbJNgKx5GlZAVLzhUhpPX3QcXlzd+WVcYsfI+xmW0+VRJF9pVI82Ba2gR+t7SF4i+3znkiVZLxNWS1R1M70stAGwIDAQAB";
    // used by the preference obfuscater
    private static final byte[] SALT = new byte[] {
            3, 43, -12, -1, 54, 66,
            -10, -12, 43, 2, -8, -54, 94, 5, -106, -108, -33, 45, -1, -84
    };

    /**
     * This public key comes from your Android Market publisher account, and it
     * used by the LVL to validate responses from Market on your behalf.
     */
    @Override
    public String getPublicKey() {
        return BASE64_PUBLIC_KEY;
    }

    /**
     * This is used by the preference obfuscater to make sure that your
     * obfuscated preferences are different than the ones used by other
     * applications.
     */
    @Override
    public byte[] getSALT() {
        return SALT;
    }

    /**
     * Fill this in with the class name for your alarm receiver. We do this
     * because receivers must be unique across all of Android (it's a good idea
     * to make sure that your receiver is in your unique package)
     */
    @Override
    public String getAlarmReceiverClassName() {
        return SampleAlarmReceiver.class.getName();
    }

}
